<?php
/**
 * 搬家服务
 * User: tengyu
 * Date: 2017/10/13
 */?>
@extends('common.common')
@section('title','搬家服务')
@section('css')
    <link rel="stylesheet" href="{{url('/css/move_serve.css')}}">
@endsection
@section('js')
    <script>
        function move_submit()
        {
            var move_name = $("input[name='move_name']").val();
            if(!move_name){
               alert('请填写搬家者姓名!');return false;
            }
            var move_phone = $("input[name='move_phone']").val();
            if(!move_phone){
                alert('请填写搬家者联系方式!');return false;
            }
            var move_email = $("input[name='move_email']").val();
            if(!move_email){
                alert('请填写您的邮箱!');return false;
            }
            var move_addr = $("input[name='move_addr']").val();
            if(!move_addr){
                alert('请填写搬家地址!');return false;
            }
            var move_require = $("#move_require").val();
            if(!move_require){
                alert('请简单填写你的搬家需求!');return false;
            }
            return true;
        }
    </script>
@endsection
@section('content')
    <div id="content">
        <!--内容导航栏-->
        <div class="row">
            @include('common.centernav')
            <div class="container">
                @if (count($errors) > 0)
                    <div class="alert alert-danger text-left">
                        <strong>搬家服务需求信息录入反馈!</strong>
                        <ul>
                            @if(is_object($errors))
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            @else
                                <li>{{$errors}}</li>
                            @endif
                        </ul>
                    </div>
                @endif
                <div class="Ft">
                    <p>搬家服务</p>
                </div>
                <div class="Lb">
                    <!--轮播-->
                    <div id="carousel">
                        <div id="carousel_pic" class="carousel slide" data-ride="carousel" data-interval="3000">
                            <div class="carousel-inner">
                                <div class="item active">
                                    <img style="width: 100%;" src="img/move1.png">
                                </div>
                                <div class="item">
                                    <img src="img/move1.png">
                                </div>
                                <div class="item">
                                    <img src="img/move1.png">
                                </div>
                            </div>
                        </div>
                    </div>
                    <form class="form-control myform form-horizontal" action="{{url('/move_server_data')}}" method="post" onsubmit="return move_submit()">
                        {!! csrf_field() !!}
                        <div class="control-group">
                            <p class="text-center cff head_title">提前预约</p>
                            <p class="text-center cff">提前预约 , 可以领取xxx元搬家红包</p>
                            <p class="text-center cff o">完全化的“私人订制”</p>
                            <div class="formtable clearfix">
                                <div class="col-lg-6 col-md-6 col-xs-6">
                                    <div class="input-group w100">
                                        <input type="text" class="" name="move_name" placeholder="您的姓名" maxlength="10">
                                    </div>
                                </div>
                                <div class="col-lg-6 col-md-6 col-xs-6">
                                    <div class="input-group w100">
                                        <input type="text" class="" name="move_phone" placeholder="您的电话" maxlength="20">
                                    </div>
                                </div>
                                <div class="col-lg-6 col-md-6 col-xs-6">
                                    <div class="input-group w100">
                                        <input type="text" class="" name="move_email" placeholder="您的邮箱" maxlength="60">
                                    </div>
                                </div>
                                <div class="col-lg-6 col-md-6 col-xs-6">
                                    <div class="input-group w100">
                                        <input type="text" class="" name="move_addr" placeholder="您的地址" maxlength="30">
                                    </div>
                                </div>
                                <div class="col-lg-12 col-md-12 col-xs-12">
									<textarea class="writeTool"  id="move_require" rows="" cols="" name="move_require" placeholder="请告诉我们，您的搬家需求"></textarea>
                                </div>
                                <div class="col-lg-12 col-md-12 col-xs-12">
                                    <input type="submit" class="submit  btn btn-primary" value="提交我们的订制需求"/>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
